Part Number Hot Search : 
ATR06 MC2836 BY500 LM7809 SMCJ5632 TRONIC B3012RW AD735708
Product Description
Full Text Search
 

To Download TSS461CNBSP Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
 TSS461C
Vehicle Area Network Data Link Controller
1. Description
Cost optimization in car manufacturing is of extreme importance today. Solutions to this problem often implies the use of more advanced and intelligent electronic circuits. The TSS461C is such a circuit, which allows the transfer of all the status information needed in a car or truck over a single low-cost wire pair, thereby minimizing the electrical wire usage. It can be used to interconnect powerful functions (ABS, dashboard, power train control) and to control and interface car body electronics (lights, wipers, power window...). The TSS461C is fully compliant with the ISO standard ISO/11519-3. This standard supports a wide range of applications such as low-cost remote controlled switches, typically used for lamp control, up to complex, highly autonomous, distributed systems like engine controls, which require fast and secure data transfers. The TSS461C is a microprocessor interfaced line controller for mid to high complexity bus-masters and listeners like injection/ignition control calculators, dashboard controllers and car stereo or mobile telephone CPUs. The microprocessor interface consists of a 256 byte RAM and register area divided into 11 control registers, 14 channel register sets and 128 bytes of general purpose RAM, used as a message storage area, and a 6-source maskable interrupt. The circuit operates in the RAM using DMA techniques, controlled by the channel and control registers. This allows virtually any microprocessor to interface with ease to the TSS461C, and to use the free RAM as a scratch pad. Messages are encoded in enhanced Manchester code, and an optional pulsed code for use with an optical or radio link, at a maximum bit rate of 1 Mbit/s. The TSS461C analyzes the messages received or transmitted according to 6 different criterias including some higher level checks. In addition the bus interface has three separate inputs with automatic source diagnosis and selection, allowing for multibus listening or the automatic selection of the most reliable source at any time if several line receivers are connected to the same bus.
2. Features
D D D D D D D D D D D D D D D D D D Fully compliant to VAN specification ISO/11519.3. Handles all specified module types. Handles all specified message types. Handles retransmission of frames on contention and errors. 3 separate line inputs with automatic diagnosis and selection. 1 Mbit/s maximum transfer rate. Normal or pulsed (optical and radio mode) coding. INTEL, NEC, TI and MOTOROLA compatible 8-bit microprocessor interface. Multiplexed address and data bus. Idle and sleep modes. 128 bytes of general purpose RAM. DMA capabilities for message handling. 14 identifier registers with all bits individually maskable. 6-source maskable interrupt including an interrupt-on-reset to detect glitches on the reset pin. Integrated crystal or resonator oscillator with internal baud rate generator and buffered clock output. Single +5V power supply. 0.8 m CMOS technology. SOP 24 packaging.
Rev. D (22 Feb 01)
1
TSS461C
Figure 1. Block Diagram
I/O Type
I/O TTL
Pin Name
AD0 AD1 AD2 AD3 AD4 AD5 AD6 AD7 ALE RD (Vss) WR (R/W) CS (E) INT RESET RxD0 RxD1 RxD2 TxD XTAL1 XTAL2 CKOUT TEST/Vss VCC vss
Pin No
21 22 23 24 1 2 3 4 7 13 14 8 6 19 17 15 16 18 9 10 12 11 5 20
Pin Function
Multiplexed address and data bus. The address is latched on the falling edge of ALE.
I trigger TTL
Open drain I trigger CMOS pulldown I CMOS Pull down
Address Latch Enable Read command Write command Chip select (active high) Interrupt Asynchronous general reset glitch filtered (' 12ns) VAN bus inputs
24 pin SOP
3-state I O O Ground Power Ground
VAN bus output Crystal oscillator or clock input pins Buffered clock output enabled if no reset Oscillator ground + 5 V power supply
Figure 2. Pinout
2
Rev. D (22 Feb 01)
TSS461C
3. Operation
The TSS461C is a microprocessor controlled line controller for the VAN bus. It can interface to virtually any microprocessor, but the I/O signals of the circuit have been optimized for use with the TSC51/TSC251 series of microcontrollers. This means that it features a multiplexed address and data bus, controlled by an address strobe pin ALE and separated read RD and write WR command pins. The address is latched on the falling edge of ALE. The circuit also features one single interrupt pin. This pin can be treated as level or edge sensitive, i.e. if there is a pending interrupt inside the circuit when another interrupt is reset the INT pin will emit a high pulse with the same pulse width as the internal write strobe (typically 20 ns).
DATA
differential DATA DATA
TSC51 33 pF
Figure 3. Typical Application
Rev. D (22 Feb 01)
DATA
3
TSS461C
4. Pinout
The TSS461C is available in SOP 24 package. Figure 2. shows the pinout. The names in parenthesis refer to the functionalities in MOTOROLA mode. Possibilities exist to supply the TSS461C in a PDIL 24 package.
5. Microprocessor Interface
The processor controls the TSS461C by reading and writing the internal registers of the circuit. These registers appear to the processor as regular memory locations.
5.1. Interface Modes
The TSS461C must be plugged in an INTEL or MOTOROLA environment with an 8-bit address/data bus multiplexed. Table 1. Access Mode Logic
CS (E)
0 1 1 1 1 0 0 1 1 0 1 0 1
RD
WR (R/W)
No operation
Operation Mode
Write operation in MOTOROLA mode Read operation in both mode Write operation in INTEL mode No operation
In INTEL environment, access operations need CS active, a read one with RD active, a write one with WR active. If TSS461C is the single peripheral in the processor space, CS can be hired to Vcc. In MOTOROLA environment, the RD pin is tired to VSS and the access operations are driven by CS (E). Contrrary to INTEL mode, CS (E) must never be hired to Vcc even if the TSS461C is alone. To switch on the fly from one mode to the other, CS must be inactive.
4
Rev. D (22 Feb 01)
TSS461C
5.1.1. INTEL Mode The INTEL mode interface consists of 13 pins. 8 pins are the multiplexed address and data bus, and the rest are the address strobe, the read and write commands, the chip select and the interrupt request pins. To access the memory locations in INTEL mode, the processor must first assert a valid address on the multiplexed address and data bus and drive the address strobe pin high. When the required set-up time has passed the processor must drive the address strobe low, and keep the address valid for the required hold time. The processor must then either assert the data to be written on the address and data bus, if a write is intended, or float the data bus for a read. The next step is to drive either the write or read command pins low, according to the function required, and at the same time drive the chip select pin high. The TSS461C access cycle is then terminated by driving the chip select and command pins low. Note, that the chip select pin may be driven high for the entire access cycle, and may also remain high during and after the termination of the cycle.
ALE
DATA TO BE WRITTEN DATA READ
AD[7:0]
ADDRESS
ADDRESS
RD
WR
CS WRITE CYCLE READ CYCLE
Figure 4. INTEL Read and Write Cycles. 5.1.2. MOTOROLA Mode In MOTOROLA mode the WR pin becomes the R/W command, the RD pin must be connected to ground and the CS pin becomes the E strobe. This means that there is no separate chip select input, i.e. if some external decoder is to be used, this decoder should not drive the E input high unless the processors E output is high as well. Please refer to Figure 5. for the MOTOROLA read and write cycles. The main difference between INTEL and MOTOROLA mode is that the timing in INTEL mode is referenced to the command signals (RD and WR), but in MOTOROLA mode the reference is the E signal.
ALE
DATA TO BE WRITTEN DATA READ
AD[7:0]
ADDRESS
ADDRESS
VSS (RD)
R/W (WR)
E (CS) WRITE CYCLE READ CYCLE
Figure 5. MOTOROLA Read and Write Cycles.
Rev. D (22 Feb 01)
5
TSS461C
5.2. Interrupts
If an event occurs in the TSS461C, that needs the attention of the processor, this will be signalled on the active low, open drain interrupt request pin. Which events that create such a request is controlled by the internal registers. Every time the microprocessor accesses any of the interrupt registers (addresses 0x08 to 0x0B) the INT pin will be released momentarily. This enables the TSS461C to work with processors that have either edge or level sensitive interrupt inputs.
5.3. Reset
The reset is applied asynchronously regarding XTAL clock. It can be done either by the RESET pin or by software. The RESET pin is a CMOS trigger input with a pull-down resistor (] 110kW). An external 1 mF capacitor to Vcc provides to RESET pin an efficient behavior. The software reset is made through the GRES command bit of the Command Register (0x03). The two resets are ored, filtered and gauging. Then the internal reset, always asserted asynchronously, enables the internal oscillator. Then it waits for eight clock periods the oscillator stability. The different blocks of the TSS461C need to be turned on synchronously. So the release of the internal reset is synchronous and a loose of clock can let the TSS461C in permanent reset after applying Reset.
6
Rev. D (22 Feb 01)
TSS461C
6. Oscillator
An oscillator is integrated in the TSS461C, and consists of an inverting amplifier of which the input is XTAL1 and the output XTAL2. A parallel resonance quartz crystal or ceramic resonator must be connected to these pins. As can be seen from Figure 3. , two capacitors have to be connected from the crystal pins to ground. The values of C1 depend on the frequency chosen and can be selected using the nomograph given in Figure 34. If the oscillator is not used, then a clock signal must be fed to the circuit via the XTAL1 input. Note, that this pin will behave as a CMOS level compatible Schmitt trigger input. In this case the XTAL2 output should be left unconnected. The oscillator also features a buffered clock output pin CKOUT. The signal on this pin is directly buffered from the XTAL1 input, without inversion. There is one more pin used for the oscillator. The TEST/VSS pin is in fact its ground, and unless this pin is firmly connected to ground, with decoupling capacitors, the oscillator will not operate correctly. The test mode itself, i.e. when the TEST/VSS pin is held high, is only intended for factory use, and the functionality of this mode is not specified in any way. Furthermore, it is subject to change without notice, the only exception beeing for incoming inspection tests using the test program. The clock signal is then fed to the clock generator that generates all the necessary timing signals for the operation of the circuit. The clock generator is controlled by a 4-bit code called the clock divider. f (TSCLK) + f (XTAL1) n 16
Table 2. Clock Divider.
32 MHz Clock Divider Divide by Ktimes lot /s Kbits /s 24 MHz Ktimes lot /s Kbits /s 16 MHz Ktimes lot /s
1000 1000 500 250 125 62.5 31.25 15.625 1333 666.667 333.333 166.666 83.333 41.666 20.833 10.416 800 400 200 100 50 25 12.5 1067 533.333 266.666 133.333 66.666 33.333 16.666 8.333 750 375 187.5 93.75 46.875 23.438 11.718 1000 500 250 125 62.5 31.25 15.625 7.813 600 300 150 75 37.5 18.75 9.375 800 400 200 100 50 25 12.5 6.125 500 250 125 62.50 31.25 15.625 7.813 666.667 333.333 166.666 83.333 41.666 20.833 10.416 5.208
Kbits /s
800 400 200 100 50 25 12.5 6.25 533.333 266.666 133.333 66.666 33.333 16.666 8.333 4.166
0000 0001 0010 0011 0100 0101 0110 0111 1000 1001 1010 1011 1100 1101 1110 1111
1 2 4 8 16 32 64 128 1.5 3 6 12 24 48 96 192
Rev. D (22 Feb 01)
7
TSS461C
Table 3. Clock Divider (continue).
12 MHz Clock Divider Divide by Ktimes lot /s
750 375 187.50 93.75 46.875 23.438 11.718 5.859 500 250 125 62.50 31.25 15.625 7.813 3.906
8 MHz Kbits /s Ktimes lot /s
500 250 125 62.5 31.25 15.625 7.813 3.906 333.333 166.666 83.333 41.666 20.833 10.416 5.208 2.604
4 MHz Kbits /s Ktimes lot /s
250 125 62.50 31.25 15.625 7.813 3.906 1.953 166.666 83.333 41.666 20.833 10.416 5.208 2.604 1.302
Kbits /s
200 100 50 25 12.5 6.25 3.125 1.562 133.333 66.666 33.333 16.666 8.333 4.166 2.083 1.042
0000 0001 0010 0011 0100 0101 0110 0111 1000 1001 1010 1011 1100 1101 1110 1111
1 2 4 8 16 32 64 128 1.5 3 6 12 24 48 96 192
600 300 150 75 37.5 18.75 9.375 4.688 400 200 100 50 25 12.50 6.25 3.125
400 200 100 50 25 12.5 6.25 3.125 266.666 133.333 66.666 33.333 16.666 8.333 4.166 2.083
8
Rev. D (22 Feb 01)
TSS461C
7. VAN Protocol
7.1. Line Interface
There are three line inputs and one line output available on the TSS461C. Which of the three inputs to use is either programmable by software or automatically selected by a diagnosis system. The diagnosis system continuously monitors the data received through the three inputs, and compares it with each other and the selected bitrate. It then chooses the most reliable input according to the results. The data on the line is encoded according to the VAN standard ISO/11519-3. This means that the TSS461C is using a two level signal having a recessive (1) and a dominant (0) state. Furthermore, due to the simple medium used, all data transmitted on the bus is also received simultaneously. The VAN protocol is hence a CSMA/CD (Carrier Sense Multiple Access/Collision Detection) protocol, allowing for continuous bitwise arbitration of the bus, and non-destructive (for the higher priority message) collision detection.
Arbitration field
Node a: TxD Node b: TxD Node c: TxD On Bus: DATA
R D R D R D
2
Node a loses the arbitration Node a releases the bus
3
Node b wins the arbitration
1
Node c loses the arbitration Node c releases the bus
R D
R: Recessive level
D: Dominant level
Figure 6. CSMA/CD Arbitration
Rev. D (22 Feb 01)
9
TSS461C
In addition to the VAN specification there is also a pulsed coding of the dominant and recessive states. This mode is intended to be used with an optical or radio link. In this mode the dominant state for the transmitter is a low pulse, (2x prescaled clocks at the beginning of the bit) and the recessive state is just a high level. When receiving in this mode it is not the state of the signal itself which is decoded, but the edges. Also, reception is imposed on the RxD0 input, and the diagnosis system does not operate correctly. In addition in this mode there is an internal loopback in the circuit since optical transceivers are not able to receive the signal that they themselves transmit.
VAN BUS SEQUENCE
NORMAL OR PULSED RECESSIVE STATE
VAN BUS SEQUENCE
NORMAL DOMINANT STATE
VAN BUS SEQUENCE
PUSED DOMINANT STATE
NUMBER OF PRESCALED CLOCKS
0
2
4
6
8
10
12
14
16
Figure 7. State Encoding. In Figure 7. the pulsed waveforms are shown. In Figure 10. through Figure 16. the low "timeslots" (i.e. blocks of 16 prescaled clocks) should be replaced by the dominant waveform showed in Figure 7. , if the correct representations for pulsed coding are to be seen.
7.2. VAN Frame
COMMAND SOF IDENTIFIER EXT RAK R/W RTR FIELD FRAME CHECK EOD ACK EOF SUM
DATA FIELD
Figure 8. Van Bus Frame. The VAN bus supports three different module (unit) types: - First, the Autonomous module, which is a bus master. It can transmit Start Of Frame (SOF) sequences, it can initiate data transfers and can receive messages. - Second, the Synchronous access module. It cannot transmit SOF sequences, but it can initiate data transfers and can receive messages. - And finally, the Slave module, which can only transmit using an in-frame mechanism and can receive messages.
10
Rev. D (22 Feb 01)
TSS461C
Autonomous Rank 0 SOF ID Synchronous Rank 1 ID COM Slave
RTR
COM
DATA
FCS
EOD ACK
EOF
DATA
FCS
EOD ACK
EOF
Rank 16
DATA
FCS
EOD ACK
EOF
Figure 9. Hierarchical Access Methods Figure 8. shows a normal VAN bus frame. It is initiated with a Start Of Frame (SOF) sequence shown in Figure 10. The SOF can only be transmitted by an autonomous module. During the preamble the TSS461C will synchronize its bit rate clock to the data received.
VAN BUS START SYNC
PREAMBLE SEQUENCE START OF FRAME
VAN BUS END OF DATA ACK END OF FRAME
SEQUENCE
NUMBER OF PRESCALED CLOCKS
0
16
32
48
64
80
96
112 128 144
160 176 192
Figure 10. Framing Sequences. When the complete SOF sequence has been transmitted or received, the circuit will start the transmission or reception of the identifier field. All data on the VAN bus, including the identifier and Frame Check Sum (FCS), are transmitted using enhanced Manchester code. In enhanced Manchester code three NRZ bits are transmitted first followed by one Manchester bit, then three more NRZ bits followed by one Manchester bit and so on. Since the high state is recessive and the low state is dominant, the bus arbitration can be done. If a module wants access to the bus, it must first listen to the bus during one full End Of Frame (EOF) and one full Inter Frame Spacing (IFS) period, to determine whether the bus is free or not (i.e. no dominant states received).
Rev. D (22 Feb 01)
11
TSS461C
VAN BUS SEQUENCE NRZ "0" NRZ "1"
VAN BUS SEQUENCE
MANCHESTER "0"
VAN BUS SEQUENCE MANCHESTER "1"
NUMBER OF PRESCALED CLOCKS 0 8 16 24 32
Figure 11. Data Encoding. The IFS is defined to be a minimum of 64 prescaled clocks periods. The TSS461C, accepts an IFS of zero prescaled clocks for the reception only of a SOF sequence. Once the bus has been determined as being free, the module must now, if it is an autonomous module, emit a SOF sequence or, if it is a synchronous access module, wait until it detects a preamble sequence. Up till this point there can be several modules transmitting on the bus, and there is no possibility of knowing if this is the case or not. Therefore the first field in wich arbitration can be performed is the identifier field. Since the logical zeroes on the bus are dominant, and all data is transmitted with the most significant bit (MSB) first, the first module to transmit a logical zero on the bus will be the prioritized module, i.e. the message that is tagged with the lowest identifier will have priority over the other messages. It is, however, conceivable that two messages transmitted on the bus will have the same identifier. The TSS461C therefore continues the arbitration of the bus throughout the whole frame. More, if the identifier in transmission has been programmed for reception as well, it transmits and receives messages simultaneously, right up till the Frame Check Sequence (FCS). Only then, if the TSS461C has transmitted the whole message, does it discard the message received. Arbitration loss in the FCS field is considered as a CRC error during transmission. This feature is called full data field arbitration, and it enables the user to extend the identifier. For instance it can be used to transmit the emitting modules address in the first bytes of the data field, thus enabling the identifier to specify the contents of the frame and the data field to specify the source of the information. The identifier field of the VAN bus frame is always 12 bits long, and it is always followed immediately by the 4-bit command field: - The first bit of the command is the extension bit (EXT). This bit is defined by the user on transmission and is received and retained by the TSS461C. To conform with the standard it should be set to 1 (recessive) by the user, else the frame is ignored without any IT generation. - The second bit is the request ACKnowledge bit (RAK). If this bit is a logical one, the receiving module must acknowledge the transfer with an in-frame acknowledgement in the ACK field. If it is set to logical zero, then the ACK field must contain an acknowledge absent sequence. - Third we have the Read/Write bit (R/W). This bit indicates the direction of the data in a frame. - If set to zero it is a "write" message, i.e. data transmitted by one module to be received by another module. - If it is set to one it implies a "read" message, i.e. a request that another module should transmit data to be received by the one that requested the data (reply request message). - Last in the command field is the Remote Transmission Request bit (RTR). This bit is a logical zero if the frame contains data and a logical one if the frame does not contain data. In order to conform with the standard a received frame included the comination R/W. RTR = 01 is ignored without any IT generation.
12
Rev. D (22 Feb 01)
TSS461C
All the bits in the command field are automatically handled by the TSS461C, so the user need not to be concerned for the encoding and decoding of these. The command bits transmitted on the VAN bus are calculated from the current status of the active message. After the command field comes the data field. This is just a sequence of bytes transmitted MSB first. In the VAN standard the maximum message length is set to 28 bytes, but the TSS461C handles messages up to 30 bytes. The next field is the FCS field. This field is a 15 bit CRC checksum defined by the following generator polynomial g(x) of order 15: g(x) = x15+x11+x10+x9+x8+x7+x4+x3+x2+1 The division is done with a rest initialized to 0x7FFF, and an inversion of the CRC bits is performed before transmission. However, since the CRC is calculated automatically from the identifier, command and data fields by the TSS461C, it need not concern the user of the circuit. When the frame check sequence has been transmitted, the transmitting module must transmit an End Of Data (EOD) sequence, followed by the ACKnowledge field (ACK) and the End Of Frame sequence (EOF) to terminate the transfer.
VAN BUS SEQUENCE
POSITIVE ACKNOWLEDGE
VAN BUS SEQUENCE
ABSENT ACKNOWLEDGE
NUMBER OF PRESCALED CLOCKS
0
8
16
24
32
Figure 12. Acknowledge Sequences.
7.3. Frame Examples
The frames transmitted on the VAN bus are generated by several modules, each supplying different parts of the message. Figure 13. through Figure 16. show the four frame types specified in the VAN standard, and what module is generating the different fields. D The most straightforward frame is the normal data frame in Figure 13. Like all other frames it is initiated with a SOF sequence. This sequence is generated by a bus master (not shown in figure). During this frame there is basically only one module transmitting with the only exception beeing the acknowledgement, generated by the receiving module if requested in the RAK bit. D The reply request frame with immediate reply in Figure 14. is the only frame in which a slave module can transmit data by filling it into the appropriate field. The only difference for the frame on the bus is that the R/W bit has changed state compared to the normal frame. This is a higly interactive frame where a bus master generates the SOF and the initiator generates the identifier, the three first bits of the command, and the acknowledge. The RTR bit, the data field, the frame check, the EOD and the EOF are all generated by the replying module. D The reply request frame with deferred reply in Figure 15. is basically the same frame as the reply request frame with immediate reply, but since the requested module does not generate the RTR bit the requesting module will continue with the frame check, the EOD and the EOF. During this frame the requested module will only generate the acknowledge, and only if this was requested by the initiator through the RAK bit. D Finally the deferred reply frame in Figure 16. which is sent when a module has prepared a reply for a reply request that has been received earlier. This frame very closely mimicks the normal data frame with the only exception beeing the R/W bit that has changed state. Rev. D (22 Feb 01) 13
TSS461C
With acknowlegment
EXT RAK R/W RTR (*) ACK ACK ACK ACK ACK EXT RAK R/W RTR (*) SOF IDENTIFIER DATA CRC EOD EOF EOD
TRANSMITTING module
SOF
IDENTIFIER
DATA
CRC
EOF
RECEIVING module
FRAME on bus
EXT : RAK : R/W : RTR : ACK :
Recessive from Transmitter Recessive for acknowledge from Transmitter Dominant from Transmitter - Dominant from Transmitter (*) Manchester bit Positive from Receiver because RAK is Recessive
Without acknowlegment
EXT RAK R/W RTR (*) EOD
TRANSMITTING module
SOF
IDENTIFIER
DATA
CRC
EOF
RECEIVING module
EXT RAK R/W RTR (*)
FRAME on bus
SOF
IDENTIFIER
DATA
CRC
EOD
EOF
EXT : Recessive from Transmitter RAK : Dominant for no acknowledge from Transmitter R/W : Dominant from Transmitter - RTR : Dominant from Transmitter (*) Manchester bit ACK : Absent from Transmitter and from Receiver because RAK is Dominant
Figure 13. Normal Data Frame
14
Rev. D (22 Feb 01)
TSS461C
EXT RAK R/W RTR (*)
REQUESTING module
SOF
IDENTIFIER
RTR (*)
REQUESTED module
DATA
CRC
ACK ACK
EOD
ACK EOF DATA CRC EOD EOF
FRAME on bus
SOF
IDENTIFIER
EXT : RAK : R/W : RTR : ACK :
Recessive from Requestor Recessive for acknowledge from Requestor Recessive from Requestor Recessive from Requestor and Dominant from Requestee(*) Manchester bit - Absent from Requestee and Positive from Requestor because RAK is Recessive
Figure 14. Reply Request Frame with Immediate Reply
EXT RAK R/W RTR (*)
EXT RAK R/W RTR (*)
REQUESTING module
SOF
IDENTIFIER
CRC
ACK ACK ACK
EOD
EOF
REQUESTED module
EXT RAK R/W RTR (*)
FRAME on bus
SOF
IDENTIFIER
CRC
EOD
EOF
EXT RAK R/W RTR ACK
: : : : :
Recessive from Requestor Recessive for acknowledge from Requestor Recessive from Requestor Recessive from Requestor - (*) Manchester bit Absent from Requestor and Positive from Requestee because RAK is Recessive
Figure 15. Reply Request Frame with Deffered Reply
Rev. D (22 Feb 01)
15
TSS461C
EXT RAK R/W RTR (*)
REPLYING module
SOF
IDENTIFIER
DATA
CRC
ACK ACK ACK
EOD
EOF
RECEIVING module
EXT RAK R/W RTR (*)
FRAME
on bus
SOF
IDENTIFIER
DATA
CRC
EOD
EOF
EXT RAK R/W RTR ACK
: : : : :
Recessive from Replyer Recessive for acknowledge from Replyer Recessive from Replyer - (*) Manchester bit Dominant from Replyer Absent from Replyer and Positive from Receiver because RAK is Recessive
Figure 16. Deffered Reply Frame
16
Rev. D (22 Feb 01)
TSS461C
8. Diagnosis System
The purpose of the diagnosis system is to detect any short or open circuits on either the DATA or DATA lines and to permit, if it is possible, to carry the communications on the non-defective line. The diagnosis system is based on the assumption that three separate line receivers are connected to the VAN bus (c.f. Figure 3. ): D One of the line receivers is connected in differential mode, sensing both DATA and DATA signals, and is connected to the RxD0 input. D The other two line receivers are operating in single wire mode and are sensing only one of the two VAN bus signals: D the line receiver sensing DATA is connected to RxD1, D the line receiver sensing DATA is connected to RxD2. The diagnosis system analyses and compares the data sent over both VAN lines. So, the diagnosis system executes a digital filtering and transition analyses. In order to perform its investigation, three internal signals are generated, RI (Return to Idle), SDC (Synchronous Diagnosis Clock) and TIP (Transmission In Progress). One of four operating modes can be chosen to manage the results of the diagnosis system.
8.1. Diagnosis States
If the diagnosis system finds a failure on either of the VAN bus signals, it changes from nominal to degraded mode, and connects the line receiver not coupled to the failing signal to the reception logic. When the diagnosis system finds that the failing signal is working again, it returns to nominal mode and re-connects the differential line receiver to the reception logic. A major error occurs when both the VAN bus signals are failed.
NONIMAL
DEGRATED DATA
- Failure during the frame. - Default of transitions on the valid input between 2 consecutive SDC rising edges. - Protocol fault - In specified selection mode, every RI pulse when an EOF is detected or through an active SDC. - In automatic selection mode and SDC active, no failure sampled by 2 consecutive SDC rising edges. - General reset
Figure 17. Diagnosis States
Rev. D (22 Feb 01)
II
II
MAJOR ERROR
I
DEGRATED DATA
II
17
TSS461C
Status bits give permanent information on the diagnosis performed, whatever the programmed operating mode. This is encoded over three bits: Sa, Sb and Sc. - Sa and Sb bits indicate the four possible states of the VAN bus Table 1. Status bits: Sa & Sb
Sa Sb
Mode 0 0 Fault Status Mode 0 1 Fault Status Mode 1 0 Fault Status Mode 1 1 Fault Status nominal no fault on VAN bus differential communication on DATA and DATA degraded on DATA fault on DATA communication on DATA degraded on DATA fault on DATA communication on DATA major error fault on DATA and DATA no communication on DATA and DATA (attempt to communicate alternatively on DATA then DATA every SDC period)
Communication
- Sc bit sets to 1 as soon as one of the three inputs (RXD2, RXD1, RXD0) differs from the others in the input comparison analysis performs by the diagnosis system, S2 is set. The only ways to reset this status bit are through the RI signal or a general reset.
8.2. Internal Operations
8.2.1. Digital Filtering If several spurious pulses occur during one bit, the diagnosis for defective conductor may be corrupted. To avoid such errors, digital filters are implemented. Filtering operation is based on sampling of the comparator output signals. A transition is taken into account only if it is observed over five samples (1/16th of timeslot). 8.2.2. Transition Analyses These analyses are continuously done on the effective edges on comparators after digital filtering. D Asynchronous diagnosis The asynchronous diagnosis is done by comparing the number of edges on DATA and DATA. If four edges are detected on one input and no edges on the other during the same peiod, the second input is considered faulty and the diagnosis mode will change to one of the degraded modes. D Synchronous diagnosis The synchronous diagnosis counts the number of edges on the data input connected to the reception logic during one SDC period. If there are less than four edges during one SDC period, the diagnosis mode will change to the major error mode. 18 Rev. D (22 Feb 01)
TSS461C
D Transmission diagnosis The transmission compares RxD1 and RxD2 inputs (through the input comparators and the filters) with the data transmitted on TxD output. At a time when the transmission logic generates a dominant - recessive transition, the inputs can give different values. Taking into account the filtering delay, the bus line seen as dominant is assumed to be correct, the other one, recessive, is considered faulty. The diagnosis mode is changed to reflect that. D Protocol fault The protocol fault is detected by counting the number of consecutive dominant timeslots. If eight consecutive timeslots are dominant, the diagnosis mode will change to the major error mode.
8.3. Generation of Internal Signals
8.3.1. RI Signal (Return to Idle) This signal is used to return to nominal mode in the three specified selection modes (see sections 8.1. and 8.4.). The RI signal is disabled in automatic selection mode. The RI signal is a pulse generated when an EOF is detected. So, at the end of each frame, the user, regarding the diagnosis status bit Sa, Sb & Sc, can make its own choice. 8.3.2. SDC Signal (Synchronous Diagnosis Clock) This time base is used by diagnosis system in automatic selection mode (see section 8.4. ) when no event is recorded on the bus. The SDC is generated either by a special SDC divider connected to the timeslot clock, either manually. The SDC clock period must be long compared to the timeslot duration. A typical SDC period should be greater than the maximum frame length appearing on the VAN network. 8.3.3. TIP Signal (Transmission In Progress) This signal must be enabled to allow the transmission diagnosis (see section 8.2.2.). The TIP turns on synchronously with the beginning of the transmission: - for asynchronous bus access, the beginning of SOF, - for synchronous bus access, the beginning of the identifier field, - for a requestee of in frame reply, the RTR bit of the command field. The TIP turns off synchronously with the end of the transmission: - after EOF - after a losing of arbitration or a code violation detection - for a requestor of in frame reply, when the arbitration is lost on RTR the bit. This signal is not generated when the transmission logic only sends an ACK.
Rev. D (22 Feb 01)
19
TSS461C
8.4. Programming Modes
Four programming modes determine the way to use the three different inputs and the diagnosis system. - 3 specified selection modes - 1 automatic selection mode Table 2. Programming modes
Ma
0 0 1 1
Mb
0 1 0 1 Differential communication
Operating mode
Degraded communication on RxD2 (DATA) Degraded communication on RxD1 (DATA) Automatic selection according the diagnosis status
20
Rev. D (22 Feb 01)
TSS461C
9. Registers
The TSS461C memory map consists of three different areas, the Control & Status registers, the Channel registers and the Message data (or Mailbox).
9.1. Mapping
0x78 to 0x7F (r/w) 0x70 to 0x77 (r/w) 0x68 to 0x6F (r/w) 0x60 to 0x67 (r/w) 0x58 to 0x5F (r/w) 0x50 to 0x57 (r/w) 0x48 to 0x4F (r/w) 0x40 to 0x47 (r/w) 0x38 to 0x3F (r/w) 0x30 to 0x37 (r/w) 0x28 to 0x2F (r/w) 0x20 to 0x27 (r/w) 0x18 to 0x1F (r/w) 0x10 to 0x17 (r/w) 0x0C to 0x0F
Channel 13
Channel 12 Channel 11 Channel 10 Channel 9 Channel 8 Channel 7 Channel 6 Channel 5 Channel 4 Channel 3 Channel 2 Channel 1
0xFF
Data Byte 127
0x7F (r/w) ID_Mask [3..0] 0x7E (r/w) ID_Mask [11..4] 0x7C & 0x7D Reserved Reserved 0x7B (r/w) Message Length + Status 0x7A (r/w) DRAK + Message Address 0x79 (r/w) ID_TAG (lsb) + COM ID_TAG (msb) 0x78 (r/w)
Channel 13 Registers
ID_Mask [3..0] 0x17 (r/w) ID_Mask [11..4] 0x16 (r/w) Reserved 0x14 & 0x15 0x13 (r/w) Message Length + Status 0x12 (r/w) DRAK + Message Address 0x11 (r/w) ID_TAG [3..0] + COM ID_TAG [11..4] 0x10 (r/w)
Channel 0 Registers
Channel 0
Reserved 0x8C 0x8B 0x8A 0x89 0x88 0x87 0x86 0x85 0x84 0x83 0x82 0x81 0x80 Data Byte 12 Data Byte 11 Data Byte 10 Data Byte 9 Data Byte 8 Data Byte 7 Data Byte 6 Data Byte 5 Data Byte 4 Data Byte 3 Data Byte 2 Data Byte 1 Data Byte 0
Interrupt Reset 0x0B (w) 0x0A (r/w) Interrupt Enable (0x80) Interrupt Status (0x80) 0x09 (r) Reserved 0x08 Last Error Status (0x00) 0x07 (r) 0x06 (r) Last Message Status (0x00) Transmit Status (0x00) 0x05 (r) Line Status (0bx01xxx00) 0x04 (r) Command (0x00) 0x03 (w) Diagnosis Control (0x00) 0x02 (r/w) 0x01 (r/w) Transmit Control (0x02) Line Control (0x00) 0x00 (r/w)
Register Figure 16. Memory Map.
Note: All the non specified addresses between 0x00 and 0x7F are considered as absent. (r) means read only register. (w) means write only register. (r/w) means read/write register. Value after RESET is found after register name. If no value is given, the register is not initialized at RESET.
Message
Rev. D (22 Feb 01)
21
TSS461C
9.2. Control and Status Registers
9.2.1. Line Control Register (0x00) :
7 CD3 6 CD2 5 CD1 4 CD0 3 PC 2 0 1 IVTX 0 IVRX
D Read/write register. D Default value after reset : 0x00 D reserved : Bit 2, this bit must not be set by the user ; a 0 must always be written to this bit. CD[3:0] : Clock Divider. They control the VAN Bus rate through a Baud Rate generator according to the formula below : f (XTAL1) f (TSCLK) + n 16 One : The TSS461C will transmit and receive data using the pulsed coding mode (i.e optical or radio link mode). The use of this mode implies communication via the RXD0 input and the non-functionality of the diagnosis system. Zero : (default at reset) The TSS461C will transmit and receive data using the Enhanced Manchester code. (RXD0, RXD1, RXD2 used). The user can invert the logical levels used on either the TXD output or the RXD inputs in order to adept to different line drivers and receivers. One : A one on either of these bits will invert the respective signals. Zero : (default at reset) The TSS461C will set TXD to recessive state in Idle mode and consider the bus free (recessive states on RXD inputs).
PC : Pulsed Code
IVTX : Invert TXD output IVRX : Invert RXD inputs
22
Rev. D (22 Feb 01)
TSS461C
9.2.2. Transmit Control Register (0x01) :
7 MR3 6 MR2 5 MR1 4 MR0 3 VER2 2 VER1 1 VER0 0 MT
D Read/Write register. D Default value after reset : 0x02 MR[3:0] : Maximum Retries. These bits allow the user to control the amount of retries the circuit will perform if any errors occurred during transmission. Table 4. Retries
MR [3:0]
0000 0001 0010 0011 0100 0101 0110 0111 1000 1001 1010 1011 1100 1101 1110 1111
Max. Nb of retry
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
Max. Nb of transmis
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
Note : Bus contention is not regarded as an error and that an infinite number of transmission attempts will be performed if bus contention occurs continuously. VER[2:0]: DLC Version after reset. - 000 : TSS461A & B - 001 : TSS461C These bits must not be set by user; 001 must always be written to these bits. MT: Module type The three different module types are supported (see section 7.2.): One: The TSS461C is at once an autonomous module (Rank 0), an synchronous access module (Rank 1) or a slave module (Rank 16). Zero: The TSS461C is at once an synchronous access module (Rank 1) or a slave module (Rank 16).
Rev. D (22 Feb 01)
23
TSS461C
9.2.3. Diagnosis Control Register (0x02) :
7 SDC3 6 SDC2 5 SDC1 4 SDC0 3 Ma 2 Mb 1 ETIP 0 ESDC
D Read/Write register D Default value after reset : 0x00. The diagnosis is discussed in greater detail in section 8. of this chapter. D In its four high order bits the user can program the SDC rate SDC [3:0], D In its two medium order bits the diagnosis system mode is controlled : M1, M0. D In the two low order bits, the user controls if the SDC and TIP are to be generated automatically ETIP, ESDC. SDC [3:0] : SDC divider The input clock is the times lot clock. Table 5. System Diagnosis Clock Divider
SDC DIVIDER SDC [3:0]
0000 0001 0010 0011 0100 0101 0110 0111 1000 1001 1010 1011 1100 1101 1110 1111
Divide by
64 128 256 512 1024 2048 4096 8192 16384 32768 65536 131072 262144 524288 1048576 2097152
Ma, Mb : Operating mode command bits Table 6. Diagnosis System Command Bits
Ma
0 0 1 1
Mb
0 1 0 1 Forces the Communication on RXD0 (differential) Forces the Communication on RXD2 (DATA) Forces the Communication on RXD1 (DATA) Automatic selection
24
Rev. D (22 Feb 01)
TSS461C
ETIP : Enable Transmission In Progress One : Enable TIP generation Zero : Disable TIP generation. -The Transmission In Progress (TIP), tells the diagnosis system to enable transmission diagnosis. ESDC : Enable System Diagnosis Clock One : Enable SDC divider. Zero : Disable SDC divider. -The Synchronous Diagnosis Clock (SDC), controls the cycle time of the synchronous diagnosis. 9.2.4. Command Register (0x03) :
7 GRES 6 SLEEP 5 IDLE 4 ACTI 3 REAR 2 0 1 0 0 MSDC
D Write only register. D Reserved : Bit 1, 2 these bit must not be set by the user ; a zero must always be written to these bit. D If the circuit is operating at low birates there might be a considerable delay between the writing of this register and the performing of the actual command (worst case 6 timeslots). The user is therefore recommanded to verify, by reading the Line Status Register (0x04) that the commands have been performed. GRES : General Reset. The Reset circuit command bit performs, if set, exactly as if the external reset pin was asserted. This command bit has its own auto-reset circuitry. One : Reset active Zero : Reset inactive SLEEP : Sleep command. If the user sets the Sleep bit, the circuit will enter sleep mode. When the circuit is in sleep mode, all non-user registers are setup to minimize power consumption and the oscillator is stopped. To exit from this mode the user must set either the idle or activate commands. One : Sleep active Zero : Sleep inactive IDLE : Idle command. If the user sets the Idle bit, the circuit will enter idle mode. In idle mode the oscillator will operate, but the TSS461C will not transmit or receive anything on the bus, and the TXD output will be in three state One : Idle active Zero : Idle inactive ACTI : Activate command. The Activate command will put the circuit in the active mode, i.e it will transmit and receive normally on the bus. When the circuit is in activate mode the TXD three-state output is enabled. One : Activate active Zero : Activate inactive REAR : Re-Arbitrate command. This command will, after the current attempt, reset the retry counter and re-arbitrate the messages to be transmitted in order to find the highest priority message to transmit. One : Re-arbitrate active Zero : Re-arbitrate inactive MSDC : Manual System Diagnosis Clock. Rather than using the SDC divider described in section 9.2.3., the user can use the manual SDC command to generate a SDC pulse for the diagnosis system.
This MSDC pulse should be high at least two timeslot clock. Rev. D (22 Feb 01) 25
TSS461C
9.2.5. Line Status Register (0x04) :
7 6 SPG 5 IDG 4 Sc 3 Sb 2 Sa 1 TXG 0 RXG
D Read only register. D Default value after reset : 0bx01xxx00. D This register reports the operation mode of the TSS461C in the Sleep an Idle bits (Command Register located at address 0x03) as well as the diagnosis system status bits S2 to S0 discussed in section 8. SPG : Sleeping IDG : Idling. Sa, Sb and Sc : Diagnosis system status bits D Sa and Sb Table 7. Diagnosis System Status Bits
Sb
0 0 1 1
Default mode at reset
Sa
0 1 0 1
COMMUNICATION INDICATION
Nominal mode, differential communication Degraded over DATA, fault on DATA Degraded over DATA, fault on DATA Major error, fault on DATA and DATA
D Sc : As soon as one of the three inputs (RXD2, RXD1, RXD0) differs from the others in the input comparison analysis performs by the diagnosis system, S2 is set. The only ways to reset this status bit are through the RI signal or a general reset. TXG : Transmitting. If this status bit is active, it indicates that the TSS461C has choosen an identifier to transmit, and it will continue to make transmission attempt for this message until it succeeds or the retry count is exceeded. The receiving indicates that there is activity on the bus. NOTE : For safe modification of active channel registers both bits should be inactive (except "abort" command).
RXG : Receiving.
9.2.6. Transmission Status Register (0x05) :
7 NRT3 6 NRT2 5 NRT1 4 NRT0 3 IDT3 2 IDT2 1 IDT1 0 IDT0
D Read only register. D Default value after reset : 0x00. D The transmission Status register contains the number of retries made up-to-date, according to the Table 4. , and the channel currently in transmission. NRT [3:0] : Number of retries done in transmission. IDT [3:0] : Channel number currently in transmission.
26
Rev. D (22 Feb 01)
TSS461C
9.2.7. Last Message Status Register (0x06) :
7 NRTR3 6 NRTR2 5 NRTR1 4 NRTR0 3 IDTR3 2 IDTR2 1 IDTR1 0 IDTR0
D Read only register. D Default value after reset : 0x00. D This register is basically the same as the transmission status register. It contains the last identifier number that was successfully transmitted, received or exceeded its retry count. If it was a successful transmission, the number of retries performed can be seen in this register as well. NRTR [3:0] : Number of retries done successfully in transmission. In case of reception NRTR[3:0] is undefined. IDTR [3:0] : Channel number that was successfully transmitted, received or exceeded its retry count. 9.2.8. Last Error Status Register (0x07) :
7 6 BOC 5 BOV 4 3 FCSE 2 ACKE 1 CV 0 FV
D Read only register. D Default value after reset : 0x00. D The Last Error Status Register contains the error code for the last transmission or reception attempt. It is updated after each attempt, i.e. several error codes can be reported during one single transmission (with several retries). BOC : Buffer occupied. D when one channel configured in "Reply request" mode has its "received" bit set when it attempts to transmit its request. D BOC with the link capability between two channels sharing the same received buffer, is set when one channel has already set its "received" bit in its "Message length and status Channel register" and a receive is attempt on the other one. BOV : Buffer overflow. BOV indicates that the buffer length setup in the Channel Status Register was shorter than the number of bytes received plus 1, and thus, some data was lost. One : BOV active Zero : BOV inactive FCSE : Framing Check Sequence Error. FCSE indicates a mismatch between the FCS received and the FCS calculated One : FCSE active Zero : FCSE inactive
Rev. D (22 Feb 01)
27
TSS461C
ACKE : Acknowledge Error. ACKE indicates a physical violation or collision on ACK field of the frame when the TSS461C is producer. One : ACKE active Zero : ACKE inactive
RAK = 0 EOD field expected received received received RAK* = 1 *RAK: bit of the frame COMMAND field EOD field expected received received received ACK field ACKE = 0 ACKE = 1 ACKE = 1 ACKE = 1 DLC: Producer ACK field ACKE = 0 ACKE = 1 ACKE = 1 ACKE = 1
Figure 18. ACKE Status bit CV : Code Violation. CV indicates: D either a Manchester code violation (2 identical TS on Manchester bit), or a physical violation (transmitted bit "dominant", received bit "recessive"), on fields ID, COM, DATA and CRC. D either a physical violation or collision on field "preamble" and the "recessive" bit of the "Star Sync" field. One : CV active Zero : CV inactive
28
Rev. D (22 Feb 01)
TSS461C
FV : Frame Violation. FV indicates a physical violation or collision on ACK field of the frame when the TSS461C is consumer. One : FV active Zero : FV inactive
DLC: Consumer EOD field expected received received received
ACK field FV = 0 FV = 1 FV = 1 FV = 1
EOD field expected received received received
ACK field FV = 0 FV = 1 FV = 1 FV = 1
Figure 19. FV Status bit 9.2.9. Interrupt Status Register (0x09) :
7 RST 6 5 4 TE 3 TOK 2 RE 1 ROK 0 RNOK
D Read only register. D Default value after reset : 0x80 RST : Reset interrupt. RE indicates that the circuit has detected a valid reset command via the RESET pin or the reset command bit GRES. This interrupt cannot be disabled, since its enable bit is set when a reset is detected. TE : Transmit error interrupt (or exceeded retry). This flag is set only when the Max number of transmission (1+MR [3:0]) is reached with error of transmission.
1st TX
2nd TX
3rd TX
IT TE set CHER set CHTx
Figure 20. Exceeded retry with MR[3..0] = 3 Rev. D (22 Feb 01)
29
TSS461C
TOK : Transmit OK interrupt. RE : Receive error interrupt. ROK : Receive "with RAK (RAK=1)" OK interrupt. One : TE, RE, TOK, ROK actives Zero : TE, RE, TOK, ROK inactives RNOK : Receive "with no RAK (RAK=0)" OK interrupt. One : Interrupt actived Zero : No Interrupt 9.2.10. Interrupt Enable Register (0x0A) :
7 1 6 0 5 0 4 TEE 3 TOKE 2 REE 1 ROKE 0 RNOKE
D Read/write register. D Default value reset : 0x80 NOTE : On reset the Reset Interrupt Enable bit is set to 1 instead of 0, as is the general rule. TEE : Transmit Error Enable TOKE : Transmission OK Enable. REE : Reception Error Enable. ROKE : Reception "with RAK" OK enable. RNOKE : Reception "with no RAK" OK enable. One : IT enabled. Zero : IT disabled. 9.2.11. Interrupt Reset Register (0x0B) :
7 RSTR 6 0 5 0 4 TER 3 TOKR 2 RER 1 ROKR 0 RNOKR
D Write only register. D Reserved bit : 5 and 6. This bit must not be set by user; a zero must always be written to this bit. RSTR : Reset Interrupt Reset. TER : Transmit Error Interrupt Reset. TOKR : Transmit OK Interrupt reset. RER : Receive Error Interrupt Reset. ROKR : Receive "with RAK" OK reset. RNOKR : Receive "with no RAK" OK reset. One : IT reset. Zero : IT unchanged.
30
Rev. D (22 Feb 01)
TSS461C
SOF BUS 4 TS Set TXG ID+COM+DATA+CRC 1 to 2 TS ACK 6 TS Reset RXG, TXG EOD
Set RXG
NIRQ 4 TS
TS: Timeslot
Figure 21. Update of the Status Register
9.3. Channel Registers
There is a total of 14 channel register sets, each occupying 8 bytes for addressing simplicity, integrated into the circuit. Each set contains two 2x8-bit registers for the indentifier tag, indentifier mask and command fields plus two 1x8-bit registers for DMA pointers and message status. The base_address of each set is: (0x10 + (0x08 * channel_number)). When the TSS461C is reseted either via the external reset pin or the general reset command, the channel registers are not affected. That is, on power-up of the circuit, all the channel registers start with random values. Due to this fact, the user should take care to initialize all the channel registers before exiting from idle mode. The easiest way to disable an channel register is to set the received and transmitted bits to 1 in the Message Length & Status Register. Table 3: Channel Register Sets Map
Channel Number
6 5 4 3 2 1 0
From
0x40 0x38 0x30 0x28 0x20 0x18 0x10
Rev. D (22 Feb 01)
CCCCCCC CCCCCCC
Write "Message Status"
Line status reg
Write "IT Status Register" Write "Last error Register" Write "Last message Register" Write "Message Length & Status Register"
To
0x47 0x3F 0x37 0x2F 0x27 0x1F 0x17
Channel Number
13 12 11 10 9 8 7
From
0x78 0x70 0x68 0x60 0x58 0x50 0x48
To
0x7F 0x77 0x6F 0x67 0x5F 0x57 0x4F
31
TSS461C
Table 4: Channel Register Set Structure
Reg. Name
ID_MASK ID_MASK (no register) (no register) MESS_L / STA MESS_PTR ID_TAG / CMD ID_TAG
Offset
0x07 0x06 0x05 0x04 0x03 0x02 0x01 0x00
bit 7
bit 6
bit 5
bit 4
bit 3
bit 2
bit 1
bit 0
ID_M [3:0] ID_M [11:4]
x
x
x
x
x x
x x
x x
M_L [4:0]
x x
x x
x x
CHER
x x
CHTx
x x
CHRx
DRACK ID_T [3: 0]
M_P [6:0] EXT ID_T [11:4] RAK RNW RTR
9.3.1. Identifier Tag and Command Registers: The identifier tag and command registers is located at the base_address and base_address + 1. It allows the user to specify the full 12-bit identifier field of the ISO standard and the 4-bit command.
7 ID_T 3 6 ID_T 2 5 ID_T 1 4 ID_T 0 3 EXT 2 RAK 1 RNW 0 RTR base_address + 0x01
7
ID_T 11
6
ID_T 10
5
ID_T 9
4
ID_T 8
3
ID_T 7
2
ID_T 6
1
ID_T 5
0
ID_T 4 base_address + 0x00
D Read / Write registers. ID_T [11:0]: Identifier Tag Upon a reception hit (i.e, a good comparison between the identifier received and an identifier specified, taking the comparison mask into account, as well as a status and command indicating a message to be received), the identifier tag bits value will be rewritten with the identifier bits actually received. EXT, RAK, RNW & RTR: (See section 11.) No comparison will be done on the command bits, excepted on EXT bit. The RAK, RNW and RTR bits will be written into the first byte of the Message upon a reception hit. The RNW and RTR bits, as well as the status bits in the length and status register, must be in a valid position for reception or transmission. If not, the message corresponding to this identifier is considered as inactive or invalid. The way of knowing if an acknowledge sequence was requested or not is to check the first byte of the Message.
32
Rev. D (22 Feb 01)
TSS461C
9.3.2. Message Pointer Register: The message pointer register at address (base_address + 0x02) is 8 bits wide. It indicates where in the Message DATA RAM area the message buffer is located.
7 DRAK 6 M_P 6 5 M_P 5 4 M_P 4 3 M_P 3 2 M_P 2 1 M_P 1 0 M_P 0 base_address + 0x02
D Read / Write register. DRAK: Disable RAK (used in 'spy mode') In reception: whatever is the RAK bit of the incoming valid frame, no ACK answer will be set. If the message was successfully received, an IT is set (ROK or RNOK). In transmission: no action. One: disable active, 'spy' mode. Zero: disable inactive, normal operation. M_P [6:0]: Message pointer Since the Message DATA RAM area base address is 0x80, the value in this register is the offset from that address. If the message buffer length value is illegal (i.e. zero), this register is redefined as being a link pointer, thus containing the channel number of the channel that contains the actual message pointer, message length and received status. However, the identifier, mask, error and transmitted status used will be that of the originally matched channel. In any case, if a link is intended, the three high bits of M_P [6:0] should be set to 0. This allows several channels to use the same actual reception buffer in Message DATA RAM, thus diminishing the memory usage. Note that only 1 level of link is supported. 9.3.3. Message Length And Status Register: The message length and status register at address (base_address + 0x03) is also 8 bits wide. It indicates the length of reseved for the message in the Message DATA RAM area.
7
M_L 4
6
M_L 3
5
M_L 2
4
M_L 1
3
M_L 0
2
CHER
1
CHTx
0
CHRx base_address + 0x03
D Read / Write register. M_L [4:0]: Message Length The 5 high bits of this register allows the user to specify either the length of the message to be transmitted, or the maximum length of a message receivable in the pointed reception buffer. Note, that the first byte in this register does not contain data, but the length of the message received. This implies that the length value has to be equal to or greater than the maximum length of a message to be received in this buffer (or the length of a message to be transmitted) plus 1, thus allowing a maximum length of 30 bytes and a minimum length of 0 byte. If the value of this field is "illegal" (i.e 0x00) then this message pointer is defined as being a link (see Message pointer & register and section 15.). Rev. D (22 Feb 01) 33
TSS461C
M_L [4:0] = 0x00 M_L [4:0] = 0x01 M_L [4:0] = 0x02 ------M_L [4:0] = 0x1D M_L [4:0] = 0x1E M_L [4:0] = 0x1F Linked channel Frame with no DATA field (*) Frame with 1 DATA byte ---------------------Frame with 28 DATA bytes Frame with 29 DATA bytes Frame with 30 DATA bytes
(*) Different of a reply request frame with no in-frame reply (deffered reply)..
CHER: Channel error status and abort command As status, this bit is set by the TSS461C when error occurs in transmission or on a received frame. The user must reset it. To abort the transmission defined in the channel, this bit can bit set to 1 by the user (see section 13. and 13.3.) CHTx: Channel transmitted and transmit enable command CHRx: Channel received and receive enable command The two low order bits of this register contains the message status. Together with the RNW and RTR bits of the command register (base_address + 0x01), they define the message type of this channel (see section 11.). As a general rule (see section 13.3.), the status bits are only set by the TSS461C, so the user must reset them to perform a transmission (CHTx) or/and a reception (CHRx). The received and transmitted bits are only set if the corresponding frame is without errors or if the retry count has been exceeded. 9.3.4. Identifier Mask Registers: The Identifier Mask registers (base_address + 0x06 and base_address + 0x07) allow bitwise masking of the comparison between the identifier received and the identifier specified.
7
ID_M 3
6
ID_M 2
5
ID_M 1
4
ID_M 0
3
0
2
0
1
0
0
0
7
ID_M 11
6
ID_M 10
5
ID_M 9
4
ID_M 8
3
ID_M 7
2
ID_M 6
1
ID_M 5
0
ID_M 4
D Read / Write registers. ID_M [11:0]: Identifier Mask A value of 1 indicates comparison enabled. A value of 0 indicates comparison disabled.
34
Rev. D (22 Feb 01)
TSS461C
10. Mailbox
The mailbox contents all the messages received or to be transmitted. Each messages is link to a channel. The Mailbox RAM area has 128 bytes and is mapped from 0x80 to 0xFF (see section 9.1.). The message (or message buffer) is composed of: D 1 byte of message status (only used in receiving), D n bytes of data. These data are the bytes of the DATA field of the frame with the same organization. The message is pointed by the Message Pointer Register of the channel, the length of the message is given by the Message Length & Status Register of the channel (sections 9.3.2. and 9.3.3.). This area is a pure RAM, it contents a random value after reset.
Message Length & Status Register
M_L [4..0] CHER CHTx CHRx
Message Pointer Register
DRAK M_P [6..0]
( M_L >= n + 2 )
Message
received
DATA n
M_P + 0x80 + n + 2
received
DATA 0
M_P + 0x80 received
RAK RNW RTR M_L [4..0] = n+1
received received received
RNW
EXT RAK
SOF
ID [11..0]
DATA 0
DATA n
FCS
ACK
RTR
EOD
EOF
Received DATA Frame, immediate or deffered reply Figure 22. Message buffer structure for reception
Rev. D (22 Feb 01)
35
TSS461C
Message Length & Status Register
M_L [4..0] CHER CHTx CHRx
Message Pointer Register
DRAK M_P [6..0]
( M_L >= n + 2 )
Message
transmitted DATA n M_P + 0x80 + n + 2
transmitted DATA 0 (nothing) M_P + 0x80
RNW
EXT RAK
SOF
ID [11..0]
DATA 0
DATA n
FCS
ACK 0
RTR
EOD
EOF
Transmitted DATA Frame Figure 23. Message buffer structure for transmission
10.1. Message Status (pointed by: Message Pointer Register)
7
RRAK
6
RRNW
5
RRTR
4
RM_L4
3
RM_L3
2
RM_L2
1
RM_L1
RM_L0
D (no significant value in case of message to be transmitted) RRAK: Received RAK bit. RRNW: Received RNW bit. RRTR: Received RTR bit. This bit is the RAK bit coming from the COM field of the received frame. This bit is the RNW bit coming from the COM field of the received frame. This bit is the RTR bit coming from the COM field of the received frame.
36
Rev. D (22 Feb 01)
TSS461C
RM_L[4:0]: Message length of the received frame. If the DATA field of the received frame included DATA0 to DATAn, RM_L[4:0] = n+1, even if the reserved length (Message Length & Status Register) is larger.
Frame Type
Node x I, P
Commu- nication
Node A C
Message Status on Node A after IT(*)
Data Frame I, C P
RAK
RNW
RTR
length
Immediate Reply
RAK I, C P RAK C I, P
RNW
RTR
previous value previous value
Deferred Reply
RNW
RTR
Data Frame P I, C RAK P I, C RAK
previous values
Immediate Reply
RNW
RTR
length
Deferred Reply
RNW
RTR
length
P: Producer I: Initiator C: Consumer (*) After IT ROK or RNOK. In case of IT RE, the values can be erroneous.
Figure 24. Message Status updating
10.2. Message Data (string pointed by: Message Pointer Register + 1)
7 6 5 4
DATAn
3
2
1
0
-
-
-
DATA0
-
-
-
-
DATA0 is the first received (or transmitted) byte, DATAn is the last one. Note 1: If the length reserved (in the message length & status register) for an incoming frame is 2 bytes greater or more, the TSS461C will write the 2 bytes of the CRC field in the message string just after DATAn. Because the VAN frame does not content a message length, the only way for the component to know the length of the DATA field is either the message length register value, either the EOD field detection. When the reserved length is too large, at the moment when it detects the EOD, the TSS461C has already written the 2 bytes of the CRC field, considering these bytes as normal DATA. Note 2: The Mailbox RAM area is a circular buffer. The next location after 0xFF is 0x80. Rev. D (22 Feb 01) 37
TSS461C
11. Messages Types
There are 5 basic message types defined in the TSS461C. Two of them (transmit and receive message types) correspond to the normal frame, and the rest correspond to the different versions of reply frames.
Transmit Message
RNW Initial setup After transmission 0 0 RTR 0 0 Transmitted 0 1 Received Dont care Unchanged
To transmit a normal data frame on the VAN bus, the user must program an identifier as a Transmit Message. The TSS461C will then transmit this message on the bus until it has succeeded or the retry count is exceeded.
Receive Message
RNW Initial setup After transmission 0 0 RTR 1 1 Transmitted Dont care Unchanged Received 0 1
The opposite of the transmit message type is the Receive Message type. This message type will not generate any frames on the bus. Instead it will listen to the bus until a frame passes that matches its identifier, with the mask taken into account, and then receive the data in that frame. The data received will be stored in the message buffer and the length of the message received is stored in the first byte of the message buffer. The actual identifier received is stored in the identifier register itself. This identifier may differ from the identifier specified in the register due to the effect of the mask register. Normally this should not interfere with the next identifier comparison since the bits that may differ are masked via the mask register.
Reply Request Message
RNW Initial setup After transmission (Waiting for reply) After reception (of reply) 1 RTR 1 Transmitted 0 Received 0
1
1
1
0
1
1
1
1
The Reply Request Message type is a demand to transmit on the VAN bus a reply request. When this message type is programmed, three things can happen. In the first case no other modules on the bus responded with an in-frame reply, and in this case the TSS461C will set the message type to the after transmission state. When this message type is programmed, the TSS461C will listen on the bus for a deferred reply frame matching this identifier, without transmitting the reply request. The second case is that another module on the bus replies with an in-frame reply. In this case the message type will pass immediatly into the after reception state, without passing the after transmission state. 38 Rev. D (22 Feb 01)
TSS461C
Reply Request Message without transmission
RNW Initial setup After reception OK 1 1 RTR 1 1 Transmitted Dont care Unchanged Received 0 1
In the third case the TSS461C has not yet started to transmit the reply request, when another module either requests a reply, and gets it, or transmits a deferred reply. Warning ! This should be avoided as it may result in an illegal message type (Illegal reply Request).
Immediate Reply Message
RNW Initial setup After transmission OK 1 1 RTR 0 0 Transmitted 0 1 Received 0 1
The immediate Reply Message will attempt to transmit an in-frame reply, using the data in the message buffer.
Deferred Reply Message
RNW Initial setup After reception (of reply request) 1 RTR 0 Transmitted 0 Received 1
1
0
1
1
Above a deferred Reply Message is shown. This message type will immediatly transmit a deferred reply frame.
Reply Request Detection Message
RNW Initial setup After reception 1 1 RTR 0 0 Transmitted 1 1 Received 0 1
Finally there is the Reply Request Detector Message type. Its purpose is to receive a reply request frame and notify the processor, without transmitting an in-frame reply.
Rev. D (22 Feb 01)
39
TSS461C
Inactive Message
RNW Recommanded After transmission After reception Illegal reply request Dont care 0 0 1 RTR Dont care 0 1 1 Transmitted 1 1 Dont care 0 Received 1 Dont care 1 1
The table above shows all inactive messages types. The last combination will transmit a reply request, but will not receive the reply since its buffer is tagged as occupied.
12. Priority among the different channels
The priority handling on the VAN bus itself is already explained in the Line interface section. The priorities for the messages in the TSS461C is however slightly different. For instance it's possible that an identifier matches two or more of the identifiers programmed into the registers. In this case, it is the lowest identifier number that has priority. i.e. if both identifier 5 and 10 match the identifier received, it is the identifier 5 that will receive the message. However, since the identifier 5 will become an inactive message when it has received the frame, the next time the same identifier is seen on the bus, the corresponding data will be received by identifier 10. The same is valid for messages to be transmitted, i.e. if two or more messages are ready to be transmitted, it is the one with the lowest identifier number that will get priority.
40
Rev. D (22 Feb 01)
TSS461C
13. Retries, rearbitrate and abort
Retries and rearbitrate commands are located, respectively, in the Transmit Control Register and in the Command Register. An abort command is located in each channel register set, in the Message Length & Status Register (base_address + 0x03). These three commands are available only when the TSS461C is producer.
Activate
Ch. enabled in Xmit mode ? yes Disable of current Ch. Select the lowest Ch. number and load "Max - retries" yes Abort activated on current Ch. ? no
no
Wait for bus free (EOF+IFS= 12 Timeslots) Decrement retry counter Transmit frame and wait for the end
abort
Abort required on current Ch. rearbitrate? no yes Retry needed ? no
rearbitrate
Figure 25. Transmit function
13.1. Retries
The purpose of retries feature is to provide, for the user, the capability of retrying a transmit request in case of failure, when a node tries to reach another node, either on normal DATA frame or on REPLY REQUEST frame. The maximum of retries is programmable through MR[3:0] of the Transmit Control Register (0x01). When a channel is enable - bit CHTx= 0 of Message Length & Status Register, a 4-bit counter is loaded with MR[3:0]. At each attempt, this counter will be count-down. To 0, an IT TE is set in the Interrupt Status Register (0x09), and the transmission is stopped. Rev. D (22 Feb 01) 41
TSS461C
MR[3:0]=1 indicates 1 retry, hence 2 transmission attempts will be performed (see Table 4. ). The number of retries performed, as well as the current channel number associated, can be read in the Transmission Status Register (0x05). The Last Error Status Register (0x07) informs about the trouble encounted: D Failure cases: - Code viol (CV error bit) - Acknoledge error (ACKE error bit) - CRC error (FCSE error bit) D It should be noticed that contention is considered as normal CSMA/CD protocol and, therefore, is not taken into account in failure cases. So, an 'infinite' number of attempts can be performed if bus contention occurs continuously. There is only one retries counter for all channels. When the user writes the Max_Retries value, all channels start their transmission with this parameter.
13.2. Rearbitrate
The purpose of rearbitrate feature is to postpone a channel already in transmission in order to autorize an higher priority (see section 12.) message to be transmit. 13.2.1. Typical example D Max_retries = 1 (2 transmissions attempts). D If Ch 8 is in a the retry loop and the user wants to transmit the Ch 5 without waiting the end of the loop, the user can use the rearbitrate command. D Then, the TSS461C will wait the end of the current transmission, reload the retries counter and enable the Ch 5 to transmit. D At the end of this transmission Ch5, either when the attempt is successful or either when the exceeded retry count is reached, the retries counter is reloaded and the transmission is activated for the Ch 8 again. Set CHTx/Ch5 & IT ROK Set CHER & CHTx /Ch8, and set IT TE Ex: set FSCE status bit
Delay Viol
(Load Max-retries)
(Load Max-retries)
* (not seen by application)
(Load Max-retries)
Rearbitrate
(Activate Ch5)
(not seen by application)
Ex: FCS Error
Ex: FCS Error
stand-by
Delay Viol
EOF+IFS
Delay Viol
First attempt Xmit Ch8
First attempt Xmit Ch8
(Retries - 1)
Xmit Ch5
Second attempt Xmit Ch8
EOF+IFS: 8 + 4 Timeslots Delay Viol: 12 Timeslots
* (not seen by application means no IT generation)
Figure 26. Rearbitrate Example
42
Rev. D (22 Feb 01)
TSS461C
(same example section 13.2.1.). Set CHTx/Ch5 & IT ROK Set CHER & CHTx /Ch8, and set IT TE Ex: set FSCE status bit
Delay Viol
(Load Max-retries)
(Load Max-retries)
* (not seen by application)
(Load Max-retries)
Idle command
Rearbitrate (Activate Ch5)
(not seen by application)
Ex: FCS Error
Ex: FCS Error
Idle
Delay Viol
EOF+IFS
Delay Viol
First attempt Xmit Ch8
First attempt Xmit Ch8
(Retries - 1)
Xmit Ch5
Second attempt Xmit Ch8
EOF+IFS: 8 + 4 Timeslots Delay Viol: 12 Timeslots
* (not seen by application means no IT generation)
Figure 27. Idle and rearbitrate example If the user sets the idle bit anywhere (after rearbitrate), the idle mode is entered only at the end of all the transmit attempts (for more information about idle command, see section 14.). 13.2.2. Disable channel after rearbitrate (same example section 13.2.1.).
Disable Ch8(*)
(Load Max-retries)
(Load Max-retries)
(not seen by application)
(Activate Ch5)
Ex: FCS Error
Ex: ACK Error
(not seen by application)
Delay Viol
Rearbitrate
Set CHER & CHTx /Ch5, and set IT TE Ex: set ACKE status bit
Delay Viol
stand-by
(Retries - 1)
KO
Delay Viol
Second attempt Xmit Ch5 Set CHTx/Ch5 & IT TOK
OK
First attempt Xmit Ch8
First attempt Xmit Ch5
EOF+IFS
stand-by
EOF+IFS: 8 + 4 Timeslots Delay Viol: 12 Timeslots
(*) The disable is applied setting the CHTx/Ch8 bit to 1.
Figure 28. Disable channel after rearbitrate example
Rev. D (22 Feb 01)
43
TSS461C
In this case, the TSS461C completes the current attempt (Ch8) and let the transmission go on the new channel (Ch5 if validated), otherwise it stops all attempts on the current channel.
13.3. Abort
An abort command is dedicated to channels already enabled in transmission or in in-frame response. For example, this command can be used to break the retry procedure on one channel. Abort channel is done by setting the Error bit (CHER) in the Message Length & Status Register (base_address + 0x02). This command is taken into account if the channel aborted is not transmitted. When this abort command is really done, the TSS461C set to 1 the Transmitted bit (CHTx) of the Message Length & Status Register. The abort mechanism is integrated into the transmit function. This mainly means, abort, priority and retries live together in the transmit function.
Example: Ch0, Ch4, Ch6 & Ch13 set in Xmit ACK mode, Max-retry=2 (3 attempts). IT ROK CHTx Set or CHER /Ch6 & or IT RE Activate Abort Ch0 (before Xmit) Set CHTx/Ch0 Set CHTx/Ch6 & IT ROK if success Set CHTx/Ch6 & IT ROK if success Abort Ch13 (before Xmit) Set CHTx/Ch4 &IT ROK
Abort Ch4 (during Xmit)
Ch's initialization
12 Timeslots
Xmit Ch4
Xmit Ch6
Xmit Ch6 if previously fail
Figure 29. Abort example
Xmit Ch6 if previously fail
44
Rev. D (22 Feb 01)
Set CHTx/Ch13
Reset
TSS461C
14. Activate, idle and sleep modes
Sleep, idle and activate commands are located in the Command Register (0x03). These three commands are general commands for the TSS461C.
14.1. Idle and activate commands
After reset, the TSS461C starts in idle mode. In this mode, the oscillator operates (CKOUT pin active) but the circuit cannot transmit or receive anything on the VAN bus. The TxD output (pin 18) is in three state mode, a pull-up resistor must be be provided externally or by the line driver to avoid floating state on the VAN bus. To activate the TSS461C, the user must set the activate bit (ACTI) and reset the idle bit (IDLE).
Idle mode
Activate mode
SOF
RxD after reset TxD 3 TS (max)
Activate command
SOF
8 TS 12 TS TS: Timeslot period
Activate mode
FCS ACK EOD
Idle mode
RxD
Idle command
INT 4 TS 5 TS
Figure 30. Idle and activate timings In both cases, the idle state can be verified reading the Line Status register (0x04).
14.2. Sleep command
If the user sets the sleep bit (SLEEP), the TSS461C enters in sleep mode, whatever are the values of activate and idle bits. It means that, all non-user registers are set-up to reduce the power consumption and the internal oscillator is immediately stopped. However, all user registers (accessible by mP bus) are always available by the user To exit from this mode, the user must set either the idle bit or either the activate bit. Rev. D (22 Feb 01)
45
TSS461C
In an application (i.e. typical application Figure 3. ) using the CKOUT feature (pin 12), if the TSS461C is put in sleep mode, the clock provided to the microcontroller is stopped. So, the system does not run and the only way to awake this application is an external reset.
46
Rev. D (22 Feb 01)
TSS461C
15. Linked channels
The linkage feature allows to channels to share the same Message area, the message pointer and the message length assumes this property: D Zero value as message length (M_L [4:0] - base_address + 0x03) declares the channel linked to another channel. D The number of this other channel is defined in the message pointer field (M_P [6:0] - base_address + 0x02). D The pointer and the length values for the Message area are defined only once time, in the register set of this other Channel. Only one level of linkage can be created. This means, (see Figure 31. ) a Channel k can be linked to the Channel i but not to Channel j, already defined as linked to Channel i. All the others can be different between the two channels, for example the ID_Tag.
The Channel j linked
....
Channel i and j
share the same Message area
to the Channel i
ID_Mask j (lsb)
--- Channel j ---
ID_Mask j (msb)
--- Message for Channels i & j ---
0x00
DRAK ID_Tag j (lsb)
CHER CHTx CHRx
DATA n
EXT RAK RNW RTR ID_Tag j (msb)
--- Channel i ---
ID_Mask i (lsb) ID_Mask i (msb)
DRAK
Mess_Len = n+2 CHER CHTx Mess_Ptr
ID_Tag i (lsb) ID_Tag i (msb)
EXT RAK RNW RTR
This Message area sharing permits either to optimize the allocation of the 128 bytes of DATA, either to perform some special communications between the different nodes of the network. Rev. D (22 Feb 01)
EEEEEEEEE EEEEEEEEE EEEEEEEEE EEEEEEEEE EEEEEEEEE EEEEEEE EEEEEEEEE EEEEEEEEE E EEEEEEEE E EEEEEEE EEEEEEEEE E EEEEEEEE EEEEEEE EEEEEE EEEEEEE EE EEEEEEE
CHRx
i
Length = n+2 DATA 0 Message Status
Figure 31. Linkage mechanism
47
TSS461C
16. Absolute Maximum Ratings*
Ambient temperature under bias : A = Automotive . . . . . . . . . . . . . . . . . . . . . . . . . . . . . -40C to 125C Storage Temperature . . . . . . . . . . . . . . . . . . . . . . . . . -65C to 150C Voltage on VCC to VSS . . . . . . . . . . . . . . . . . . . . . . . . . . -0.5 to +7.0 V Voltage on any pin to VSS . . . . . . . . . . . . . . . . -0.5 V to VCC + 0.5 V * NOTICE Stresses at or above those listed under "Absolute Maximum Ratings" may cause permanent damage to the device. This is a stress rating only and functional operation of the device at these or any other conditions exceeding those indicated in the operational sections of this specification is not implied. Expolure to absolute maximum rating conditions may affect device reliability.
17. DC Characteristics
TA = -40C to 125C ; VCC = 5 V 10 % ; VSS = 0 V
Symbol
VIL VIH VIL1 VIH1 VOL VOH IL RPD CIO ICCSB ICCOP Notes :
Parameter
Input Low Voltage (except RESET and XTAL1) Input High Voltage (except RESET and XTAL1) Input Low Voltage (RESET and XTAL1) Input High Voltage (RESET and XTAL1) Output Low Voltage Output High Voltage Input Leakage Current Input pulldown resistor I/O Buffer Capacitance Power Supply Current Sleep mode Power Supply Current Idle or Active mode
Min
-0.5 2.0 -0.5 0.7VCC
Max
0.8 VCC+0.5 0.3VCC VCC+0.5 0.4
Type
V V V V V V
Test Conditions
IOL = 3.2 mA, Vcc min IOH = -3.2 mA, Vcc min 0 < VIN < VCC Note 4 Not tested (Note 1) (Notes 2,4) (Notes 3,4)
2.4 5 110 10 50 4 15
A k pF A mA mA
1. Sleep Mode ICCSB is measured according to Figure 32. , with a VSS Clock Signal. 2. Active mode ICCOP is measured at 1 MHz clock, 62.5 KTS/s. 3. Active mode ICCOP is measured at 20 MHz clock, 250 KTS/s. 4. ICC is a function of the Clock Frequency. In Figure 34. is displayed a graph showing ICC versus Clock frequency. 5. RESET, RXD0, RXD1, RXD2 inputs.
48
Rev. D (22 Feb 01)
TSS461C
Icc
TXD CLOCK SIGNAL N.C.
Figure 32. ICC
mA 18
14
10
MHz 8 16 24 32
Figure 33. ICC Versus Clock Frequency at 250 KTimeslot/s
Rev. D (22 Feb 01)
49
TSS461C
18. AC Characteristics
TA = -40C to 125C ; VCC = 5V 10% ; VSS = 0V
18.1. Microprocessor Interface
CLOAD = 30pF
Symbol
TRESET 1 2 3 4 5 6 7 8 9 10 11 TLHLL TAVLL TLLAX TAVWL TDVWH TWHDX TWHLH TRLDV TRHDZ TWHRLIZ TIZIL
Parameter
RESET High Pulse Width (For Power-up Reset) ALE High Pulse Width Address Valid to ALE Low Setup Time ALE Low to Address Invalid Hold Time Address Valid to Command Active Time Data Valid to Write Inactive Setup Time Write Inactive to Data Invalid Hold Time Write Inactive to ALE High Recovery Time Read Active to Data Valid Access Time Read Inactive to Data Float Time Write Inactive or Read Active to IRQ Float Time IRQ Float Pulse Width
Min
15 10 10 10 20 10 12 20
Max
Unit
ns ns ns ns ns ns ns ns
110 20 90 2 20
ns ns ns ns
50
Rev. D (22 Feb 01)
TSS461C
18.1.1. Oscillator Characteristics
Figure 34. C2 Versus Frequency.
C1 = Crystal load (no capacitance needed)
18.2. External Clock drive characteristics (XTAL1)
Symbol
TCHCH TCHCX TCLCX
Parameter
Oscillator period High Time at 32 MHz Low Time at 32 MHz
Min
30 10 10
Max
Unit
ns ns ns
XTAL1 TCHCX TCHCH TCLCX
Rev. D (22 Feb 01)
51
TSS461C
19. Packaging
SO 24 SO A A1 B C D E e H h L N a 2.35 0.10 0.35 0.23 15.20 7.40 1.27 10.00 0.25 0.40 24 0_ MM 2.65 0.30 0.49 0.32 15.60 7.60 BSC 10.65 0.75 1.27 0.093 0.004 0.014 0.009 0.599 0.291 0.050 0.394 0.010 0.016 24 0_ INCH 0.104 0.012 0.019 0.013 0.614 0.299 BSC 0.419 0.029 0.050
20. Ordering Information
TSS461C R
Part Number
Conditioning R : Tape & Reel D : Dry Pack Blank : Tubes
52
Rev. D (22 Feb 01)


▲Up To Search▲   

 
Price & Availability of TSS461CNBSP

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X